package com.xdf.whiteaccount.entity;
import java.io.Serializable;
/**
 * 由 chanchaw 创建于 2023-8-21 16:58:36，实现功能如下：
 * 1. 实现接口 Serializable
 * 2. 无参构造函数
 * 3. 建造者模式
 * 4. getter,setter,toString()
 * 商贸基础资料成品分类
 */
public class FabBaseProductCategory implements Serializable {
    public FabBaseProductCategory() {}
    private static final long serialVersionUID = 1L;

    private Integer iid;//自增主键
    private String sid;//字符串编号
    private String sname;//名称
    private String category;//分类
    private String alias;//别名
    private String code;//编码
    private Integer state;//状态，默认1表示有效
    private String remark;//备注
    private Integer printCount;//打印次数
    private Float seq;//排序序号
    private java.util.Date createTime;//创建时间,DB自动填充
    private String createUser;//创建人
    private java.util.Date lastTime;//最后一次修改时间
    private String lastUser;//修改人

    public Integer getIid(){return this.iid;}
    public void setIid(Integer iid){this.iid = iid;}
    public String getSid(){return this.sid;}
    public void setSid(String sid){this.sid = sid;}
    public String getSname(){return this.sname;}
    public void setSname(String sname){this.sname = sname;}
    public String getCategory(){return this.category;}
    public void setCategory(String category){this.category = category;}
    public String getAlias(){return this.alias;}
    public void setAlias(String alias){this.alias = alias;}
    public String getCode(){return this.code;}
    public void setCode(String code){this.code = code;}
    public Integer getState(){return this.state;}
    public void setState(Integer state){this.state = state;}
    public String getRemark(){return this.remark;}
    public void setRemark(String remark){this.remark = remark;}
    public Integer getPrintCount(){return this.printCount;}
    public void setPrintCount(Integer printCount){this.printCount = printCount;}
    public Float getSeq(){return this.seq;}
    public void setSeq(Float seq){this.seq = seq;}
    public java.util.Date getCreateTime(){return this.createTime;}
    public void setCreateTime(java.util.Date createTime){this.createTime = createTime;}
    public String getCreateUser(){return this.createUser;}
    public void setCreateUser(String createUser){this.createUser = createUser;}
    public java.util.Date getLastTime(){return this.lastTime;}
    public void setLastTime(java.util.Date lastTime){this.lastTime = lastTime;}
    public String getLastUser(){return this.lastUser;}
    public void setLastUser(String lastUser){this.lastUser = lastUser;}


    @Override
    public String toString() {
        return "FabBaseProductCategory{" +
        ",iid='" + iid + '\'' +
        ",sid='" + sid + '\'' +
        ",sname='" + sname + '\'' +
        ",category='" + category + '\'' +
        ",alias='" + alias + '\'' +
        ",code='" + code + '\'' +
        ",state='" + state + '\'' +
        ",remark='" + remark + '\'' +
        ",printCount='" + printCount + '\'' +
        ",seq='" + seq + '\'' +
        ",createTime='" + createTime + '\'' +
        ",createUser='" + createUser + '\'' +
        ",lastTime='" + lastTime + '\'' +
        ",lastUser='" + lastUser + '\'' +
        '}';
    }

    public static class Builder{
        private Integer iid;
        private String sid;
        private String sname;
        private String category;
        private String alias;
        private String code;
        private Integer state;
        private String remark;
        private Integer printCount;
        private Float seq;
        private java.util.Date createTime;
        private String createUser;
        private java.util.Date lastTime;
        private String lastUser;

        public Builder iid(Integer iid){this.iid = iid;return this;}
        public Builder sid(String sid){this.sid = sid;return this;}
        public Builder sname(String sname){this.sname = sname;return this;}
        public Builder category(String category){this.category = category;return this;}
        public Builder alias(String alias){this.alias = alias;return this;}
        public Builder code(String code){this.code = code;return this;}
        public Builder state(Integer state){this.state = state;return this;}
        public Builder remark(String remark){this.remark = remark;return this;}
        public Builder printCount(Integer printCount){this.printCount = printCount;return this;}
        public Builder seq(Float seq){this.seq = seq;return this;}
        public Builder createTime(java.util.Date createTime){this.createTime = createTime;return this;}
        public Builder createUser(String createUser){this.createUser = createUser;return this;}
        public Builder lastTime(java.util.Date lastTime){this.lastTime = lastTime;return this;}
        public Builder lastUser(String lastUser){this.lastUser = lastUser;return this;}
        public FabBaseProductCategory build(){
            return new FabBaseProductCategory(this);
        }
    }

    public static Builder builder(){return new Builder();}
    public FabBaseProductCategory(Builder builder){
        this.iid = builder.iid;
        this.sid = builder.sid;
        this.sname = builder.sname;
        this.category = builder.category;
        this.alias = builder.alias;
        this.code = builder.code;
        this.state = builder.state;
        this.remark = builder.remark;
        this.printCount = builder.printCount;
        this.seq = builder.seq;
        this.createTime = builder.createTime;
        this.createUser = builder.createUser;
        this.lastTime = builder.lastTime;
        this.lastUser = builder.lastUser;
    }
    /**
     * 自定义代码请写在此处之后
     */
}
